﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Slc.Core.Config
{
    /// <summary>
    /// 配置字段名称
    /// </summary>
    internal static class ConfigSectionName
    {
        /// <summary>
        /// 默认配置节
        /// </summary>
        public const string Slc = "Slc";
    }
    /// <summary>
    /// 字段属性名称
    /// </summary>
    internal static class ConfigPropertyName
    {
        /// <summary>
        /// 系统语言类型
        /// </summary>
        public const string LANGUAGE = "Language";
        /// <summary>
        /// 是否调试模式
        /// </summary>
        public const string DEBUGMODE = "DebugMode";
        /// <summary>
        /// 数据库类型
        /// </summary>
        public const string DATABDTYPE = "DataDbType";
        /// <summary>
        /// 数据库兼容版本（现主要用于SQLSERVER 中 2000,2005,2008的版本区分）其它数据库类型也可以使用该值
        /// </summary>
        public const string DBVERSION = "DbVersion";
        /// <summary>
        /// 数据库连接
        /// </summary>
        public const string CONNECTIONSTRING = "ConnectionString";
        /// <summary>
        /// 数据库操作实例程序集
        /// </summary>
        public const string HELPERASSEMBLY = "HelperAssembly";
        /// <summary>
        /// 指定数据库操作类
        /// </summary>
        public const string HELPERTYPE = "HelperType";
        /// <summary>
        /// 日志文件的路径
        /// </summary>
        public const string LOGPATH = "LogPath";
        /// <summary>
        /// 是否启用日志
        /// </summary>
        public const string ENABLELOG = "EnabledLog";
        /// <summary>
        /// 记录命令执行时间
        /// </summary>
        public const string LOGEXETIME = "LogExeTime";

    }
    /// <summary>
    /// 字段属性值
    /// </summary>
    internal static class ConfigPropertyValue
    {
        /// <summary>
        /// 语言默认值
        /// </summary>
        public const string LANGUAGE_DEFAULT = "zh_CN";
        /// <summary>
        /// 语言默认值
        /// </summary>
        public const long LOGEXETIME_DEFAULT = 400;
        /// <summary>
        /// 语言是否启用日志 默认值
        /// </summary>
        public const bool ENABLELOG_DEFAULT = false;
        /// <summary>
        /// 日志文件的默认路径
        /// </summary>
        public const string LOGPATH_DEFAULT = "C:\\Slc\\Log\\";
        /// <summary>
        /// 默认数据库操作程序集
        /// </summary>
        public const string HELPERASSEMBLY_DEFAULT = "Slc.Core";
        /// <summary>
        /// 指定数据库操作类
        /// </summary>
        public const string HELPERTYPE_DEFAULT = "Slc.Core.DataProvider.SqlServer";
        /// <summary>
        /// 英文
        /// </summary>
        public const string LANGUAGE_EN = "en-US";
        /// <summary>
        /// 简体中文
        /// </summary>
        public const string LANGUAGE_ZH_CN = "zh_CN";
        /// <summary>
        /// 繁体中文
        /// </summary>
        public const string LANGUAGE_ZH_TW = "zh_TW";
        /// <summary>
        /// 调试模式默认值
        /// </summary>
        public const bool DEBUG_MODE_DEFAULT = false;
        /// <summary>
        /// 数据库版本默认值
        /// </summary>
        public const string DBVERSION_DEFAULT = "SQL2008";
        /// <summary>
        /// 数据库工厂模式默认值
        /// </summary>
        public const string DATADBTYPE_DEFAULT = "SQLServer";
        /// <summary>
        /// MS SqlServer 数据库
        /// </summary>
        public const string DATADBTYPE_SQLSERVER = "SQLServer";
        /// <summary>
        /// Oracle 数据库
        /// </summary>
        public const string DATADBTYPE_ORACLE = "Oracle";
        /// <summary>
        /// 数据库 连接字符串
        /// </summary>
        public const string CONNECTIONSTRING_DEFAULT = "";
    }

}
